<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <button>jsonp</button>
</body>
<script>
    function fn(obj){
		console.log(obj);
    }
    document.querySelector("button").onclick = function(){
		// 1- 创建一个script标签
        const script = document.createElement("script");// 创建一个名字为script的标签
        script.src = "http://127.0.0.1/my";
        // 2- 将创建好的script标签放置到body中
        document.body.appendChild(script);
		document.body.removeChild(script);
    }
</script>

</html>